#ifndef __HEALTHCHECK_AS
#define __HEALTHCHECK_AS

#include <string.h>

#include "esp_system.h"
#include "esp_log.h"
#include "driver/uart.h"
#include "driver/gpio.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

typedef struct {
	uint8_t head; // 数据头
	int8_t heartRateWaveform[64]; // 心率波形数据
	uint8_t heartRate; // 心率
	uint8_t spo; // 血氧
	uint8_t bk; // 微循环
	uint8_t rsv[8]; // 保留数据 rsv[3]收缩压 rsv[4]舒张压
} HealthDataStruct;

typedef struct
{
    void (* init)(void);
    void (* startCheck)(void);
    void (* finishCheck)(void);
    HealthDataStruct HealthData;
} HealthClassStruct;

extern HealthClassStruct HealthClass;

void Health_init(void);

#endif
